package com.ihelp.rest.mis.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 会员
*      
* 类名称：Users   
* 类描述：     
* 创建时间：2013-3-21 下午02:10:14    
* 备注：   
* @version
 */
@Table(name = "USERS")
@Entity
public class Users implements Serializable{

	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "ID", length = 64)
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "guid")
	private String id;
	
	/**
	 * 家长编号(CODE)
	 */
	@Column(name = "CODE")
	private String code;
	
	/**
	 * 家长姓名(NAME)
	 */
	@Column(name = "NAME")
	private String name;
	
	/**
	 * 登陆密码(PASSWORD)
	 */
	@Column(name = "PASSWORD")
	private String password;
	
	/**
	 * 与孩子关系(RELATION)
	 */
	@Column(name = "RELATION")
	private String relation;
	
	/**
	 * 省
	 */
	@Column(name = "PROVINCE")
	private String province;
	
	/**
	 * 市
	 */
	@Column(name = "CITY")
	private String city;
	
	/**
	 * 县
	 */
	@Column(name = "COUNTY")
	private String county;
	
	/**
	 * 手机号码 
	 */
	@Column(name = "MOBILE")
	private String mobile;
	
	/**
	 * 联系电话
	 */
	@Column(name = "TEL")
	private String tel;
	
	/**
	 * 邮箱
	 */
	@Column(name = "EMAIL")
	private String email;
	
	/**
	 * 家庭住址
	 */
	@Column(name = "ADDRESS")
	private String address;
	
	/**
	 * 生日
	 */
	@Column(name = "BIRTHDAY")
	private String birthday;
	
	/**
	 * 孩子性别
	 */
	@Column(name = "SEX")
	private String sex;
	
	/**
	 * 现就读班级(SCHOOLCLASS)
	 */
	@Column(name = "SCHOOLCLASS")
	private String schoolClass;
	
	/**
	 * 孩子接触网络时间(BEIGNTIME)
	 */
	@Column(name = "BEIGNTIME")
	private String beginTime;
	
	/**
	 * 受控用户(CONTROLUSER)
	 */
	@Column(name = "CONTROLUSER")
	private String controlUser;
	
	/**
	 * 销售人员ID(SALEUSERID)
	 */
	@ManyToOne
	@JoinColumn(name="SALEUSERID")
	private SysUser saleUser;
	
	/**
	 * 市场部经理ID(MANAGERUSERID)
	 */
	@ManyToOne
	@JoinColumn(name="MANAGERUSERID")
	private SysUser managerUser;
	
	/**
	 * 上网教育辅导助理ID(ASSISTANTUSERID)
	 */
	@ManyToOne
	@JoinColumn(name="ASSISTANTUSERID")
	private SysUser assistantUser;
	
	/**
	 * 添加时间
	 */
	@Column(name = "ADDTIME", updatable=false)
	private String addTime;
	
	/**
	 * 最后更新时间
	 */
	@Column(name = "LASTTIME")
	private String lastTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getSchoolClass() {
		return schoolClass;
	}

	public void setSchoolClass(String schoolClass) {
		this.schoolClass = schoolClass;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getControlUser() {
		return controlUser;
	}

	public void setControlUser(String controlUser) {
		this.controlUser = controlUser;
	}

	public SysUser getSaleUser() {
		return saleUser;
	}

	public void setSaleUser(SysUser saleUser) {
		this.saleUser = saleUser;
	}

	public SysUser getManagerUser() {
		return managerUser;
	}

	public void setManagerUser(SysUser managerUser) {
		this.managerUser = managerUser;
	}

	public SysUser getAssistantUser() {
		return assistantUser;
	}

	public void setAssistantUser(SysUser assistantUser) {
		this.assistantUser = assistantUser;
	}

	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}
	
}
